import { Cartographic } from 'cesium';
import waterLayer from './water/waterLayer'
import LayerManage from './LayerManage/layermanage'
// import waterPlayer from './WaterPlay/waterplay'
// import {createModel} from "./ModelControl/addmodel"
import River1Point from '../river1'
import floods from '../flood_a'
export const initlayerManage = function (viewer) {
    // 图层管理
    var data = [
        {
            title: '设施',
            children: [
                {
                    title: '杆塔、电缆',
                    type: "gltf",
                    url: "../static/gltf/杆线v4.gltf",
                    position: {
                        x: 112.625139, 
                        y: 28.21657,
                        z: 42.12,
                        heading: 0,
                        pitch: 0
                    }
                }
            ]
        },

    ]
    var layerM = new LayerManage(viewer)
    layerM.initData(data)
    var water = new waterLayer(River1Point)
    water.addTo(viewer.scene)
    
}
export const initwaterPlayer = function (viewer) {
    var myPlayer = new waterPlayer(viewer)
    myPlayer.initData(floods)
}
